using System.Collections.Generic;
using JetBrains.Application.Parts;
using JetBrains.IDE.UsageStatistics;
using JetBrains.ProjectModel;
using JetBrains.ReSharper.Plugins.Godot.ProjectModel;

namespace JetBrains.ReSharper.Plugins.Godot.UsageStatistics;

[SolutionComponent(Instantiation.DemandAnyThreadSafe)]
public class GodotProjectTechnologyAnalyticsProvider : IProjectTechnologyAnalyticsProvider
{
    public IEnumerable<string> GetProjectTechnology(IProject project)
    {
        if (project.IsGodotProject())
        {
            yield return "Godot";
            yield return "GameDev";
        }
    }
}
